import request from '@/utils/request'

// 查询网关连接记录列表
export function listGatewayConnection(query) {
    return request({
        url: '/equipment/gatewayConnection/list',
        method: 'get',
        params: query
    })
}

// 查询网关连接记录详细
export function getGatewayConnection(id) {
    return request({
        url: '/equipment/gatewayConnection/' + id,
        method: 'get'
    })
}

// 新增网关连接记录
export function addGatewayConnection(data) {
    return request({
        url: '/equipment/gatewayConnection',
        method: 'post',
        data: data
    })
}

// 修改网关连接记录
export function updateGatewayConnection(data) {
    return request({
        url: '/equipment/gatewayConnection',
        method: 'put',
        data: data
    })
}

// 删除网关连接记录
export function delGatewayConnection(id) {
    return request({
        url: '/equipment/gatewayConnection/' + id,
        method: 'delete'
    })
}
